# %%
def main() -> None:
    # 过滤出为True的元素
    l = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10]
    it = filter(lambda x: x % 2 == 0, l)
    for i in it:
        print(i)


# %%
if __name__ == "__main__":
    main()
